home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / business / oasis3.zip / INSTALLA.BAT < prev    next >
DOS Batch File  |  1994-12-08  |  7KB  |  161 lines

  1. Echo Off
  2. REM ******************************************************
  3. REM * File   : Install.bat
  4. REM * Author : Stephen Williams
  5. REM * Date   : Sept. 3, 1992
  6. REM * Revised: Dec 8, 1994
  7. REM * Purpose: Installation - OASIS Ver 3.x
  8. REM ******************************************************
  9. if "%1" == ""    goto help
  10. if "%1" == "?"   goto help
  11. if "%1" == "A:"  goto help
  12. if "%1" == "a:"  goto help
  13. if "%1" == "B:"  goto help
  14. if "%1" == "b:"  goto help
  15. if "%1" == "A"   goto help
  16. if "%1" == "a"   goto help
  17. if "%1" == "B"   goto help
  18. if "%1" == "b"   goto help
  19.  
  20. for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1.==%%f. goto Help
  21. for %%f in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:) do if %1.==%%f. goto Help
  22. for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:) do if %1.==%%f. goto Help
  23. for %%f in (X:,x:,Y:,y:,Z:,z:)                         do if %1.==%%f. goto Help
  24.  
  25. REM **************************
  26. REM HARD DISK INSTALLATION
  27. REM **************************
  28. if not exist %1:\nul goto help
  29. if not exist OASIS_EX.EXE goto BadDef
  30. if not exist OASIS_DB.EXE goto BadDef
  31. if not exist ORDERA.DOC goto BadDef
  32. if not exist README.OAS goto BadDef
  33. CLS
  34. Echo ┌──────────────────────────────────────────────────────┐ 
  35. Echo │                                                      │
  36. Echo │                   OASIS INSTALLATION                 │
  37. Echo │                                                      │
  38. Echo │      Install Main Program & Help Files on %1:\OWL     │
  39. Echo │                                                      │
  40.  
  41. if exist %1:\OWL\OASIS.EXE goto ExistEXE
  42. if exist %1:\OWL\OAHELP.DBF goto ExistEXE
  43. if exist %1:\OWL\OAHELP.DBT goto ExistEXE
  44. if exist %1:\OWL\OASIS.ICO goto ExistEXE
  45. if exist %1:\OWL\OASIS2.DBF goto ExistEXE
  46. if exist %1:\OWL\ORDERA.DOC goto ExistEXE
  47.  
  48. :InsMain
  49. Echo └──────────────────────────────────────────────────────┘
  50. Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
  51. OASIS_EX %1:\OWL
  52. CLS
  53. Echo ┌──────────────────────────────────────────────────────┐ 
  54. Echo │                                                      │
  55. Echo │                   OASIS INSTALLATION                 │
  56. Echo │                                                      │
  57. Echo │        Installing Sample Data Files on %1:\OWL        │
  58. Echo │                                                      │
  59.  
  60. if exist %1:\OWL\CUST2.DBF goto ExistDat
  61. if exist %1:\OWL\CUST2.DBT goto ExistDat
  62. if exist %1:\OWL\GROUPS.DBF goto ExistDat
  63. if exist %1:\OWL\INV.DBF goto ExistDat
  64. if exist %1:\OWL\INV.DBT goto ExistDat
  65. if exist %1:\OWL\ITM3.DBF goto ExistDat
  66. if exist %1:\OWL\PMT.DBF goto ExistDat
  67. if exist %1:\OWL\PROD3.DBF goto ExistDat
  68. if exist %1:\OWL\PROD3.DBT goto ExistDat
  69. if exist %1:\OWL\LABDEF.DBF goto ExistDat
  70. if exist %1:\OWL\PRDEF2.DBF goto ExistDat
  71.  
  72. :InsDat
  73. Echo └──────────────────────────────────────────────────────┘
  74. Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ 
  75. OASIS_DB %1:\OWL
  76. COPY ORDERA.DOC %1:\OWL\ORDERA.DOC
  77. COPY README.oas %1:\OWL\README.oas
  78. %1:
  79. CD \OWL
  80. goto End
  81.  
  82. :ExistEXE
  83. Echo │ IMPORTANT: Program already exists on your system.    │
  84. Echo │                                                      │
  85. Echo │ When Prompted:   Overwrite [Y/N]                     │
  86. Echo │                                                      │
  87. Echo │ Press Y if you are upgrading from an earlier version │
  88. Echo │ or want to reinstall the program.                    │
  89. Echo │                                                      │
  90. Echo │ Press N to retain your existing program & help files.│
  91.  
  92. goto InsMain
  93.  
  94. :ExistDat
  95. Echo │ IMPORTANT: Data files already exist on your system.  │
  96. Echo │                                                      │
  97. Echo │ When Prompted:   Overwrite [Y/N]                     │
  98. Echo │                                                      │
  99. Echo │ Press N to retain your existing data files.          │
  100. Echo │                                                      │
  101. Echo │ Press Y to replace your existing data files with the │
  102. Echo │ sample data files.                                   │
  103.  
  104. goto InsDat
  105.  
  106. :BadDef
  107. CLS
  108. Echo ┌────────────────────────────────────────────────────────────────┐
  109. Echo │              OASIS 3.X  -  Installation HELP                   │
  110. Echo │                                                                │
  111. Echo │ INSTALLA must be run from the drive where INSTALLA.BAT resides │
  112. Echo │                                                                │
  113. Echo │ If you are installing OASIS from a floppy disk in drive A      │
  114. Echo │ type "A:" before running INSTALLA.                             │
  115. Echo │                                                                │
  116. Echo │ Example:    A:            (Set Default To Drive A)             │
  117. Echo │             INSTALLA C    (Install Program on drive C)         │
  118. Echo │                                                                │
  119. Echo │                   PROGRAM NOT INSTALLED                        │
  120. Echo └────────────────────────────────────────────────────────────────┘
  121. goto bad_end
  122. :Help
  123. Cls
  124. Echo ┌────────────────────────────────────────────────────────────────┐
  125. Echo │                OASIS 3.X  -  Installation HELP                 │
  126. Echo │                                                                │
  127. Echo │                                                                │
  128. Echo │ OASIS must be installed on a HARD DISK DRIVE.                  │
  129. Echo │                                                                │
  130. Echo │ The install program decompresses archive files and copies them │
  131. Echo │ to subdirectory \OWL on the designated hard disk drive.  If    │
  132. Echo │ \OWL does not exist on the designated hard disk, it will be    │
  133. Echo │ created for you.                                               │
  134. Echo │                                                                │
  135. Echo │ Syntax for the command is:  INSTALLA d                         │
  136. Echo │                                                                │
  137. Echo │        where "d" is the hard disk drive letter where you want  │
  138. Echo │        the program installed.                                  │
  139. Echo │                                                                │
  140. Echo │ Examples:  INSTALLA C   (Note no colon is typed)               │
  141. Echo │            INSTALLA D                                          │
  142. Echo │            etc.                                                │
  143. Echo │                                                                │
  144. Echo │                   PROGRAM NOT INSTALLED                        │
  145. Echo └────────────────────────────────────────────────────────────────┘
  146. goto bad_end
  147. REM ************************
  148. REM End Of OASIS Installation
  149. REM ************************
  150. :end
  151. CLS
  152. Echo ┌──────────────────────────────────────────────────────┐
  153. Echo │            OASIS HAS BEEN INSTALLED ON %1:\OWL        │
  154. Echo │                                                      │
  155. Echo │                To run OASIS type "OASIS"             │
  156. Echo │                                                      │
  157. Echo │  Please review file README.OAS for important infor-  │
  158. Echo │  mation on configuring your system.                  │
  159. Echo └──────────────────────────────────────────────────────┘ 
  160. :bad_end
  161.